﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace P2P_Backup.tools
{
    public class Log
    {
        io.LogStreamWriter logWriter;

        private static Log _Instance;
        public static Log Instance
        {
            get
            {
                if (_Instance == null)
                    _Instance = new Log();
                return _Instance;
            }
        }
        private Log()
        {
            logWriter = new io.LogStreamWriter();
            Console.SetOut(logWriter);
        }
        public void setOutput(TextBox output)
        {
            logWriter.output = output;
        }
    }
}
